﻿@model SIGCBI.Entities.CAMBIO_PARTIDAS

<p></p>
@using (Html.BeginForm("AsignarPartidaAFuente", "FuenteFinanciera", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div id="FormAjaxSubmitNotifications"></div>
    
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div class="panel panel-default">
        <div class="panel-heading"><b>Centro de Costo Origen</b></div>
        <div class="panel-body">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th><b>Centro</b></th>
                        <th><b>Fuente</b></th>
                        <th><b>Partida</b></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.DropDownList("cmbCentrosOrigen")
                        </td>
                        <td>
                            @Html.DropDownList("cmbFuentesOrigen")
                        </td>
                        <td>
                            @Html.DropDownList("cmbPartidasOrigen")
                            @Html.HiddenFor(model => model.IdOrigen)
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
        </div>
    </div>
    
    <div class="panel panel-default">
        <div class="panel-heading"><b>Centro de Costo Destino</b></div>
        <div class="panel-body">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th><b>Centro</b></th>
                        <th><b>Fuente</b></th>
                        <th><b>Partida</b></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            @Html.DropDownList("cmbCentrosDestino")
                        </td>
                        <td>
                            @Html.DropDownList("cmbFuentesDestino")
                        </td>
                        <td>
                            @Html.DropDownList("cmbPartidasDestino")
                            @Html.HiddenFor(model => model.IdDestino)
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
        </div>
    </div>
    
    <div class="panel panel-default" >
        <div class="panel-heading"><b>Partida Presupuestaria Origen</b></div>
        <div class="panel-body">
            <table class="table table-responsive">
                <thead>
                    <tr>
                        <th>Centro de Costo: </th>
                        <th><input type="text" readonly="true" id="CentroCostoOrigen" name="CentroCostoOrigen" /></th>
                    </tr>
                    <tr>
                        <th>Fuente Financiera:  </th>
                        <th><input type="text" readonly="true" id="FuenteFinancieraOrigen" name="FuenteFinancieraOrigen" /></th>
                    </tr>
                    <tr>
                        <th>Partida:</th>
                        <th><input type="text" readonly="true" id="PartidaOrigen" name="PartidaOrigen" /></th>
                    </tr>
                    <tr>
                        <th>Monto:</th>
                        <th><input type="text" readonly="true" id="MontoActualOrigen" name="MontoActualOrigen" /></th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    
    <div class="panel panel-default">
        <div class="panel-heading"><b>Partida Presupuestaria Destino</b></div>
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-responsive">
                <thead>
                    <tr>
                        <th>Centro de Costo: </th>
                        <th><input type="text" readonly="true" id="CentroCostoDestino" name="CentroCostoDestino" /></th>
                    </tr>
                    <tr>
                        <th>Fuente Financiera: </th>
                        <th><input type="text" readonly="true" id="FuenteFinancieraDestino" name="FuenteFinancieraDestino" /></th>
                    </tr>
                    <tr>
                        <th>Partida:</th>
                        <th><input type="text" readonly="true" id="PartidaDestino" name="PartidaDestino" /></th>
                    </tr>
                    <tr>
                        <th>Monto:</th>
                        <th><input type="text" readonly="true" id="MontoActualDestino" name="MontoActualDestino" /></th>
                    </tr>
                </thead>
            </table>
            </div>
        </div>
    </div>
    
    <div>
        <b>Nro. Resolución:</b>&nbsp;&nbsp;&nbsp;  @Html.TextBoxFor(model => Model.NroResolucion, new { @class = "alert-warning" })
        @Html.ValidationMessageFor(model => model.NroResolucion)
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <b>Monto a Asignar:</b> &nbsp;&nbsp;&nbsp; @Html.TextBoxFor(model => Model.Monto, new { @class = "alert-warning" })
        @Html.ValidationMessageFor(model => model.Monto)
    </div>
    <br />
}


<p></p>
<p>
    <button type="submit" id="btnGuardar" value="Create" class="btn btn-default btn-lg active">Guardar</button>
    <a href="@Url.Action("Index", "Home")" class="btn btn-default btn-lg active" role="button">Cancelar</a>
</p>


@section scripts
{
    <script src="~/Scripts/CambiarPresupuesto.js" type="text/javascript"></script>

}